package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;

import cn.growthgate.fgo.entity.enums.ServantTrait;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 从者特性
 * </p>
 *
 * @author GrowthGate
 * @since 2019-06-17
 */
@TableName("t_data_servant_traits")
public class ServantTraits extends Model<ServantTraits> {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键id
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 从者id
	 */
	private Long servantId;

	/**
	 * 特性
	 */
	private ServantTrait trait;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getServantId() {
		return servantId;
	}

	public void setServantId(Long servantId) {
		this.servantId = servantId;
	}

	public ServantTrait getTrait() {
		return trait;
	}

	public void setTrait(ServantTrait trait) {
		this.trait = trait;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ServantTraits{" + "id=" + id + ", servantId=" + servantId + ", trait=" + trait + "}";
	}

}
